# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktp-common-internals
pkgver=22.04.3
pkgrel=0
pkgdesc="Library for KTp"
url="https://github.com/kde/ktp-common-internals"
# armhf blocked by extra-cmake-modules
# s390x and riscv64 blocked by polkit -> kio
arch="all !armhf !s390x !riscv64"
license="LGPL-2.1-only AND GPL-2.0-only"
depends_dev="
	kcmutils-dev
	kconfig-dev
	kcoreaddons-dev
	kemoticons-dev
	kiconthemes-dev
	kio-dev
	knotifications-dev
	knotifyconfig-dev
	kpeople-dev
	ktexteditor-dev
	kwallet-dev
	kwidgetsaddons-dev
	kwindowsystem-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	telepathy-qt-dev
	"
makedepends="$depends_dev extra-cmake-modules doxygen"
source="https://download.kde.org/stable/release-service/$pkgver/src/ktp-common-internals-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
982b240cc018c1b0698c47f1284ab3158106e5c76f722feca00a7ad4e68896f4c32ae27fc59d3e1b056fd7fb6299d702b01d1a4ec10faae0ef9e778a67ffd449  ktp-common-internals-22.04.3.tar.xz
"
